import 'package:flutter/services.dart';

class SelectPicUtils {
  static const MethodChannel _channel =
  const MethodChannel('com.ehs2.photo_select');

  static Future<List>  getTakePic( Map<String, String> map) async {

    return await _channel.invokeMethod('takePhoto',map);
  }
  static Future<List>  getSelectPic( Map<String, String> map) async {


    print("卧室图片");
    return await _channel.invokeMethod('selectPic',map);
  }
  static Future<List>  getSelectVideo( Map<String, String> map) async {


//    var result;
//    result = await _channel.invokeMethod('selectVideo',map);
//
//    print("asdadaa" + result);
    
    return await _channel.invokeMethod('selectVideo',map);
  }
}